Splice Spritesheet
Cut up spritesheet into animation or image array.
Node Data | |
|---|---|
Display name | |
Splice Spritesheet | |
Internal name | |
Node_Image_Sheet | |
Inheritances | |
| Node_Image_Sheet | |
Inputs | |
Sprite | |
surface |
Surface In |
vec2 |
Sprite Size |
ipadding |
Padding |
int |
Row |
Sheet | |
vec2 |
Amount |
trigger |
Auto Fill |
enum |
Main Axis |
vec2 |
Offset |
vec2 |
Spacing |
Output | |
enum |
Output |
float |
Animation Speed |
trigger |
Sync Animation |
bool |
Flatten Array |
Filter | |
bool |
Filter Empty Output |
enum |
Filtered Pixel |
color |
Filtered Color |
Outputs | |
surface |
Surface Out |
atlas |
Atlas Data |
Attributes | |
| Color Depth | |
Splice spritesheet into animation or surface array.
Properties
| Sprite | |
| Sprite Size | Dimension of output surface. |
| Padding | Add empty space around the output sprite. |
| Sheet | |
| Amount | Amount of sprite in the sprite sheet (in column/row grid). |
| Main Axis | The direction of the spritesheet grid (left-right or up-down). (does not impact the shape of the grid) |
| Offset | The (top-left) position of the first sprite. |
| Spacing | Spacing between each grid cell. |
| Output | |
| Output | Whether to output sprite as animation or surface array. |
| Animation Speed | (for animation output) Animation speed. |
| Flatten Array | If input array of spritesheets with surface array output, whether to combine all output array to 1D array or create a nested 2D array. |
| Filter | |
| Filter Empty Output | Remove empty sprite. |
| Filtered Pixel | Set condition for an empty sprite (Transparent or Solid color). |
Related Links
- Base Code: /scripts/node_image_sheet/node_image_sheet.gml
- Shader [sh_h]: /shaders/sh_h/sh_h.fsh
- Shader [sh_w]: /shaders/sh_w/sh_w.fsh